package com.tdkj.model.enterprisezone;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.information.BeanBaseInfo;

@Entity
@Table(name = "enterprise")
public class BeanEnterprise extends BaseEntity{

	// Fields
	//企业名
	private String name ;
	//企业地址
	private String address ;
	//企业介绍
	private String introduce ;
	//企业介绍图片
	private String introduceImg ;
	//企业logo	
	private String logo ;
	//企业公告
	private String notice ;
	//联系人
	private String contactPeople ;
	//业务范围
	private String businessScope ;
	//qq
	private String qq ;
	//邮箱
	private String email ;
	//电话
	@Column(name = "phone")
	private String phone ;
	//传真
	private String fax ;
	//邮编
	private String zipCode ;
	//网址
	private String siteUrl ; 
	//规模
	private String companyExtent;
	//公司简介	
	private String briefIntroduce ;
	//公司新闻
	private Set<BeanEnterpriseNews> enterpriseNews = new HashSet<BeanEnterpriseNews>(0);
	//公司产品
	private Set<BeanEnterpriseProduct> enterpriseProduct = new HashSet<BeanEnterpriseProduct>(0);
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(columnDefinition  = "TEXT")
	public String getIntroduce() {
		return introduce;
	}
	
	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public String getNotice() {
		return notice;
	}
	public void setNotice(String notice) {
		this.notice = notice;
	}
	public String getContactPeople() {
		return contactPeople;
	}
	public void setContactPeople(String contactPeople) {
		this.contactPeople = contactPeople;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public String getSiteUrl() {
		return siteUrl;
	}
	public void setSiteUrl(String siteUrl) {
		this.siteUrl = siteUrl;
	}
	public String getBriefIntroduce() {
		return briefIntroduce;
	}
	public void setBriefIntroduce(String briefIntroduce) {
		this.briefIntroduce = briefIntroduce;
	}
	public String getBusinessScope() {
		return businessScope;
	}
	public void setBusinessScope(String businessScope) {
		this.businessScope = businessScope;
	}
	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "enterprise")
	public Set<BeanEnterpriseNews> getEnterpriseNews() {
		return enterpriseNews;
	}
	
	public void setEnterpriseNews(Set<BeanEnterpriseNews> enterpriseNews) {
		this.enterpriseNews = enterpriseNews;
	}
	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "enterprise")
	public Set<BeanEnterpriseProduct> getEnterpriseProduct() {
		return enterpriseProduct;
	}
	
	public void setEnterpriseProduct(Set<BeanEnterpriseProduct> enterpriseProduct) {
		this.enterpriseProduct = enterpriseProduct;
	}
	
	public String getIntroduceImg() {
		return introduceImg;
	}
	
	public void setIntroduceImg(String introduceImg) {
		this.introduceImg = introduceImg;
	}
	/**
	 * @return the companyExtent
	 */
	public String getCompanyExtent() {
		return companyExtent;
	}
	/**
	 * @param companyExtent the companyExtent to set
	 */
	public void setCompanyExtent(String companyExtent) {
		this.companyExtent = companyExtent;
	}
}